# recommendation/urls.py
from django.urls import path
from . import views

urlpatterns = [
    path('crawl/', views.crawl_user_problems, name='crawl_user_problems'),
    path('show/', views.show_user_problems, name='show_user_problems'),
    path('pop/', views.pop_recommendation, name='pop_recommendation'),
    path('randomize/', views.randomize_recommendation_queue, name='randomize_recommendation_queue'),
    path('init/',views.initialize_recommendation_queue, name='initialize_recommendation_queue'),
    path('clear-solved/', views.clear_solved_problems, name='clear_solved_problems'),
    path('update-problems/',views.update_problems_from_user, name='update_problems_from_user'),
    path('delete_queue/',views.delete_recommendation_queue,name='delete_recommendation_queue'),
    path('frontend_get_user_solved_problems_info/',views.frontend_get_user_solved_problems_info,name='frontend_get_user_solved_problems_info'),
    path('frontend_get_user_tag_difficulty_analysis/',views.frontend_get_user_tag_difficulty_analysis,name='frontend_get_user_tag_difficulty_analysis'),
    path('crawl_of_uid/<str:uid>/', views.get_user_problem_numbers_view, name='user_problems'),# 测试爬虫用的接口
]
